package org.ajc.org.domain;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelEntity;
import cn.afterturn.easypoi.excel.annotation.ExcelTarget;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ExcelTarget("部门管理")
public class Department {
    @ApiModelProperty("部门id")
    private Long id;
    @ApiModelProperty("部门名称")
    @Excel(name = "部门名称", width = 20)
    @ExcelEntity
    private String name;
    @ApiModelProperty("部门描述")
    private String intro;
    @ApiModelProperty("部门创建时间")
    @JsonFormat(pattern = "yyyy:MM:dd HH:mm:ss",timezone = "GTM+8")
    private Date createTime;
    @ApiModelProperty("部门修改时间")
    @JsonFormat(pattern = "yyyy:MM:dd HH:mm:ss",timezone = "GTM+8")
    private Date updateTime;
    @ApiModelProperty("部门员工")
    private Employee manager;
    @ApiModelProperty("上级部门")
    private Department parent;
    private String path;
    private String state;
    /**查询包含字迹*/
    private List<Department> children;
}
